package org.shagin.jfin.core;

/**
 * The Class CoreUtils.
 */
public class CoreUtils {

    /**
     * Check not null.
     * 
     * @param object the object
     * @param varName the var name
     */
    public static void checkNotNull(Object object, String varName) {
        if (object == null)
            throw new IllegalArgumentException(varName + " is null");
    }

    /**
     * Assert not null.
     *
     * @param object the object
     * @param varName the var name
     */
    public static void assertNotNull(Object object, String varName) {
        if (object == null)
            throw new IllegalStateException(varName + " is null");
    }

    /**
     * Not implemented.
     */
    public static void notImplemented() {
        throw new RuntimeException("Not implemented");
    }
}
